package com.wwtech.epp.ui.activity.login.contract;

import com.wwtech.epp.ui.activity.base.BasePresenter;
import com.wwtech.epp.ui.activity.base.BaseView;

import java.util.Map;

/**
 * @author hzp
 * @Package The contract for LoginActivity
 * @Description: $description
 * @date 2017/08/01 17:11:43
 */
public interface LoginContract {
    interface View extends BaseView<LoginContractPresenter> {
        /**
         *
         */
        void showProgressDialog();

        /**
         *
         */
        void closeProgressDialog();

        void loginSuccess();
    }

    interface LoginContractPresenter extends BasePresenter {
//        /**
//         *
//         */
//        void getBusinessInfo(Map map);

        /**
         *用户登录服务器
         */
        void userLogin(Map map);

        void getMyInfo(String userId);

        void getToken();
    }
}